const ClickData = class ClickData{
  constructor(props){
    this.size = props.size,
    this.page = props.page,
    this.productName = props.productName,
    this.time = props.time
  }
  getState(){
    let x= {}
    // 产品名称
    if(this.productName){
      x.productName = this.productName
    }
    // 添加时间
    if(this.time){
      x.timeStart = this.time ? getTimestamp(this.time[0]) : undefined;
      x.timeEnd = this.time ? getTimestamp(this.time[1])+ 86399999 : undefined;
    }
    x.size = this.size
		x.page = this.page
		return x
  }
}

export  default ClickData
